﻿<%@ Page Language="C#" MasterPageFile="~/Template/USER.Master" AutoEventWireup="true" CodeBehind="chitietsanpham.aspx.cs" Inherits="BTN04.USER.chitietsanpham" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMenuTrai" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cplContent" runat="server">
<div style="clear:both; display:block; width:615px;">
    <div id="title_content">
        <div style="width:240px; float:left;">
            <div id="title_left_content"></div>
            <div id="title_mid_content"> >> CHI TIẾT SẢN PHẨM &nbsp;</div>
            <div id="title_right_content"></div>
        </div>
        <div style="float:left; text-align:right; padding-right:25px; padding-top:5px; color:#FFEF84; width:350px;">
                                                 
        </div>
	       
	 </div>
	 <div id="mid_content">
	    <div style="clear:both; display:inline-table; width:615px; color:White;">
	        <div style="float:left; width:350px; height:300px; margin-left:10px;">
                <asp:Image ID="imgChiTiet" runat="server" Height="300px" 
                    ImageUrl="" Width="350px" />
            </div>
            <div style="float:left; width:240px; margin-left:10px; color:White; margin-top:140px;">         
                <div style="font-weight:bold; font-size:18pt;"><asp:Label ID="lblTenSanPham" runat="server" Text="Label"></asp:Label></div>                
                <div>Giá : <span style="color:Red;"><asp:Label ID="lblGiaBan" runat="server" Text="Label"></asp:Label> &nbsp;VNĐ</span></div>
                <div>Số lượng xem : <asp:Label ID="lblSoLuongXem" runat="server" Text="Label"></asp:Label></div>
                <div>Nhà sản xuất : <asp:Label ID="lblNhaSanXuat" runat="server" Text="Label"></asp:Label></div>
                <div>Xuât xứ : <asp:Label ID="lblXuatXu" runat="server" Text="Label"></asp:Label></div> 
                <div>Số lượng tồn : <asp:Label ID="lblSoLuongTon" runat="server" Text="Label"></asp:Label></div>          
               
                <div style="clear:both; display:block;">
                    <div style="width:160px; float:left;">Số lượng : 
                  
                        <asp:TextBox ID="txtMuaNgay" runat="server" Width="60px" 
                            style="margin-right:10px;" ontextchanged="txtMuaNgay_TextChanged"></asp:TextBox>
                         
                            
                    </div>
                    <div style="padding-top:2px; width:80px; float:left;">
                         <asp:HyperLink ID="HyperLink37" runat="server" ImageUrl="~/Images/muangay.gif" ></asp:HyperLink>
                    </div>
                   
                </div>
              
            </div>
            <div style="clear:both; display:block;">&nbsp;</div>
            <div style="color:White; font-size:14pt; font-weight:bold; padding-left:10px; clear:both;">MÔ TẢ</div>
            <div style="margin-left:10px;">
                <asp:Label ID="lblMoTa" runat="server" Text="Label"></asp:Label>
             </div>
	    </div>
	 </div>
	 <div id="bottom_content"></div>
	 <!--San pham cung loai-->
	 <div id="title_content">
        <div style="width:240px; float:left;">
            <div id="title_left_content"></div>
            <div id="title_mid_content"> &gt;&gt; SẢN PHẨM CÙNG LOẠI &nbsp;</div>
            <div id="title_right_content"></div>
        </div>
        <div style="float:left; text-align:right; padding-right:25px; padding-top:5px; color:#FFEF84; width:350px;">
            Xem thêm <img src="../Images/dot02.gif" />                                        
        </div>
	       
	 </div>
     <asp:Repeater ID="Repeater1" runat="server" 
            DataSourceID="ObjectDataSourceSanPhamCungLoai">
            <HeaderTemplate>
                <div id="mid_content">
                    <ul id="ul" style="margin-left:3px;">
            </HeaderTemplate>
            <ItemTemplate>
                    <li id="li">
                        <div style="clear:both; display:block;">
                            <div id="top_sanpham">
                            </div>
                            <div id="mid_sanpham">
                                <div style="width:172px; margin-left:10px; margin-left:10px; padding-top:5px;">
                                     <a href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                        <img height="150px" src="../<%# Eval("Hinh") %>" width="172px" /></a>
                                </div>
                                <div id="ten_sanpham" style="font-size:larger;"> 
                                    <a href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                        <%# Eval("TenSanPham")%></a>
                                </div>
                                <div id="gia_sanpham">Giá : <%# Eval("GiaBan") %> VNĐ
                                </div>
                                  <div style="color:Green ; font-weight :bold ;" align="center"> 
                                    <a href ="ThemSanPhamVaoGioHang.aspx?idSanPham=<%# Eval("MaSanPham")%>">
                                        Đặt mua
                                    </a>
                         </div>
                            </div>
                            <div id="bottom_sanpham">
                            </div>
                        </div>
                    </li>  
            </ItemTemplate>
            <FooterTemplate>
                    </ul>
                </div>
            </FooterTemplate>       
     </asp:Repeater>
    
       
        <asp:ObjectDataSource ID="ObjectDataSourceSanPhamCungLoai" runat="server" 
            SelectMethod="DanhSachSanPhamCungLoai" TypeName="BTN04.BUS.SanPhamBUS">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="1" Name="_maLoai" 
                    QueryStringField="idMaLoaiSanPham" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
       
    <div id="bottom_content">
    </div>  
    <!--end san pham cung loai-->
</div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMEnuPhai" runat="server">
</asp:Content>
